<template>
  <div></div>
</template>

<script>
export default {
  name: "About",
  data() {
    return {};
  },
  mounted() {
    this.$socket.connect();
    this.$socket.emit("about", "这里是about");
    this.sockets.subscribe("about", (data) => {
      console.log(data);
    });
  },
  beforeDestroy() {
    this.sockets.unsubscribe("about");
    this.$socket.close();
  },
};
</script>

<style lang="scss" scoped>
</style>